package guoanmaker.operator.business.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_operator_refuserecord")
public class OperatorRefuseRecord extends IdEntity{
	@Column(name="attribut_id")
	private String attributId;     //丛属ID
	@Column(name="content")
	private String content;        //内容
	@Column(name="reasonname")
	private String reasonName;     //拒绝原因（存名称）
	@Column(name="useraccountforcord")
	private String useraccountforcord;    //操作记录
	@Column(name="status")
	private Integer status;       //审批状态      1---->审批通过   2--->拒绝     3----->下架   4---->关闭
	@Column(name="refuse_time")
	private Date  refuseTime;      //拒绝时间   
	@Column(name="opchannel") 
	private Integer  opchannel;//   记录属于哪个渠道的       0---商户    1---商品   2---订单       3---空间        4---服务种类
	
	@Column(name="refunds")
	private Double refunds;  //退款金额 （针对订单）

	//OperatorRoomService------------>selectRefuseBYRoomId
	public OperatorRefuseRecord(String content,String reasonName,String useraccountforcord,Integer status,Date  refuseTime){
		this.content=content;
		this.reasonName=reasonName;
		this.useraccountforcord=useraccountforcord;
		this.status=status;
		this.refuseTime=refuseTime;
	}
	//OperatorRoomService------------>selectOperatorRefuseRecordPage
	public OperatorRefuseRecord(String attributId,String content,String reasonName, String useraccountforcord, Integer status,Date refuseTime){
		this.attributId=attributId;
		this.content=content;
		this.reasonName=reasonName;
		this.useraccountforcord=useraccountforcord;
		this.status=status;
		this.refuseTime=refuseTime;
	}
	public OperatorRefuseRecord(Date  refuseTime){
		this.refuseTime=refuseTime;
	}
}
